package cloud.lysky.java.on.design_pattern.observer;

/**
 * @author luoly
 * @describe
 * @date 2022-08-20 11:12
 **/
public class Guardian implements Observer{
    @Override
    public void notify(String tweet) {
        if (tweet != null && tweet.contains("queen")){
            System.out.println("Yet another news in London..." + tweet);
        }
    }
}